package com.zmn.oms.persistence.interfaces.grab;


import com.zmn.oms.model.entity.grab.NonGridGrabOrder;
import com.zmn.oms.model.query.grab.NonGridGrabOrderQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *
 * @since 2022-07-26T10:13:42.109
 */
public interface NonGridGrabOrderDao {

    /**
     * 根据条件查询数据
     *
     * @param nonGridGrabOrderQuery 查询条件
     * @return 对象列表
     */
    List<NonGridGrabOrder> listByQuery(NonGridGrabOrderQuery nonGridGrabOrderQuery);

    /**
     * 修改数据
     *
     * @param nonGridGrabOrder 实例对象
     * @return 修改是否成功
     */
    void updateByKey(NonGridGrabOrder nonGridGrabOrder);

    /**
     * 新增数据
     *
     * @param nonGridGrabOrderList
     * @return 新增是否成功
     */
    void batchInsert(@Param("nonGridGrabOrderList") List<NonGridGrabOrder> nonGridGrabOrderList);

    /**
     * 根据条件删除数据
     * @param nonGridGrabOrderQuery
     */
    void deleteByQuery(NonGridGrabOrderQuery nonGridGrabOrderQuery);
}
